find-remotes: Fix unused variable warnings
authorMatthew Leeds <matthew.leeds@endlessm.com>
Sat, 26 May 2018 01:01:35 +0000 (18:01 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 30 May 2018 14:19:25 +0000 (14:19 +0000)
Closes: #1605
Approved by: cgwalters

src/ostree/ot-builtin-find-remotes.c

index 77b7a8da3fc572261461e8471ae3a0e5a3da728c..f255501ad1a3d32852d9659270b41a0e9cbd198d 100644 (file)
@@ -179,14 +179,15 @@ ostree_builtin_find_remotes (int            argc,
   g_autoptr(GPtrArray) finders = NULL;  /* (element-type OstreeRepoFinder) */
   g_autoptr(OstreeRepoFinder) finder_config = NULL;
   g_autoptr(OstreeRepoFinder) finder_mount = NULL;
+#ifdef HAVE_AVAHI
   g_autoptr(OstreeRepoFinder) finder_avahi = NULL;
+#endif  /* HAVE_AVAHI */
   g_autoptr(OstreeAsyncProgress) progress = NULL;
   gsize i;
   g_autoptr(GAsyncResult) find_result = NULL, pull_result = NULL;
   g_auto(OstreeRepoFinderResultv) results = NULL;
   g_auto(GLnxConsoleRef) console = { 0, };
   g_autoptr(GHashTable) refs_found = NULL;  /* set (element-type OstreeCollectionRef) */
-  g_auto(GStrv) finders_strings = NULL;
 
   context = g_option_context_new ("COLLECTION-ID REF [COLLECTION-ID REF...]");